<#include "../common/layout.ftl"/>
<@layout>
<div class="well">
		<h1>临时订单</h1>
  </div>

<div class="well">

	<table class="table table-bordered table-striped">
		<thead>
		  <tr>
			<th>单号</th>
			<th>客户姓名</th>
			<th>客户手机</th>
			<th>客户性别</th>
			<th>目标方向</th>
			<th>起点</th>
			<th>终点</th>
			<th>下单时间</th>
			<th>操作</th>
		  </tr>
		</thead>
		<tbody>
		<#list page.list as order>
		  <tr>
		  <td>${order.id}</td>
			<td>
			  ${order.real_name!""}
			</td>
			<td>
			  ${order.cell_phone!""}
			</td>
			<td>
			 <#if order.sex??>
			  <#if order.sex == 0>
			  	<span class="label label-info">男</span>
			  <#elseif order.sex == 1>
			  	<span class="label label-warning">女</span>
			  <#else>
			  	<span class="label label-inverse">未知</span>
			  </#if>
			  </#if>
			</td>
			<td>
			 ${order.userarea!" "}
			</td>
			<td>
			 ${order.startpoint!" "}
			</td>
			<td>
			 ${order.endpoint!" "}
			</td>

			<td>
			 ${order.create_time!" "}
			</td>
			<td>
				<a class="btn btn-success" href="/order/toApproval/${order.id}"><i class="icon-leaf icon-white"></i> 定距定价</a>
				<a class="btn btn-success" href="/order/cancelNotAccept/${order.id}"  >取消</a>
				<button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button>
			</td>
		  </tr>
		</#list>
		</tbody>
	</table>
	<#include "../common/paginate.ftl" />
	<@paginate currentPage=page.pageNumber totalPage=page.totalPage actionUrl="/order/tempList/" />
</div>

</@layout>